// 封装一个函数来判断时间段的函数
export const getTime = () => {
  let message = ""
  let hour = new Date().getHours()
  if (hour <= 8) {
    message = "早上"
  } else if (hour <= 11) {
    message = "上午"
  } else if (hour <= 18) {
    message = "下午"
  } else {
    message = "晚上"
  }
  return message
}
